package com.aispeech.asr.apis.detection.controller;


import org.springframework.boot.actuate.endpoint.annotation.ReadOperation;
import org.springframework.boot.actuate.endpoint.web.annotation.WebEndpoint;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Component;

@Component
@WebEndpoint(id = "healthz")
public class Healthz {
    //@GetMapping(value = {"/healthz", "/**/healthz/**"})
    @ReadOperation(produces = MediaType.TEXT_PLAIN_VALUE)
    public String health() {
        return "OK";
    }
}
